//
//  JSLHelpCenteryController.m
//  JingleSpeedLoan
//
//  Created by 宋质彬 on 2018/8/6.
//  Copyright © 2018年 宋质彬. All rights reserved.
//

#import "JSLHelpCenteryController.h"
#import "H5WebView.h"
@interface JSLHelpCenteryController ()<UIWebViewDelegate>
@property (nonatomic , weak) UIWebView *webView;

@property (nonatomic , strong) UITableView *tableView;
@property (nonatomic, strong) NSMutableArray *arrDataSource;
@end

@implementation JSLHelpCenteryController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.


    
    [self baseConfig:PageGobackTypePop];

    self.edgesForExtendedLayout = UIRectEdgeNone;

    UIWebView *webView = [[UIWebView alloc] initWithFrame:self.view.bounds];
    NSString *resourcePath = [[NSBundle mainBundle] resourcePath];
    
    NSString *filePath  = [resourcePath stringByAppendingPathComponent:self.fileName];
    
    NSString *htmlstring =[[NSString alloc] initWithContentsOfFile:filePath encoding:NSUTF8StringEncoding error:nil];
    
    [webView loadHTMLString:htmlstring  baseURL:nil];
    [self.view addSubview:webView];

    [webView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.view);
        make.left.equalTo(self.view);
        make.width.equalTo(self.view);
        make.bottom.equalTo(self.view);
    }];
}



@end
